﻿using System;
using System.ComponentModel;
using DevExpress.Xpo;
using DevExpress.Data.Filtering;
using DevExpress.ExpressApp;
using DevExpress.Persistent.Base;
using DevExpress.Persistent.BaseImpl;
using DevExpress.Persistent.Validation;
namespace Top.Module.Domain
{
    [DefaultClassOptions]
    public class TopShop : BaseObject
    {
        //begin
        public TopShop(Session session) : base(session)
        {}
        public override void AfterConstruction(){base.AfterConstruction();}

        private string _Sid;
        [Size(SizeAttribute.Unlimited)]
        public string Sid
        {
            get
            {
                return _Sid;
            }
            set
            {
                SetPropertyValue("Sid", ref _Sid, value);
            }
        }
        private string _Cid;
        [Size(SizeAttribute.Unlimited)]
        public string Cid
        {
            get
            {
                return _Cid;
            }
            set
            {
                SetPropertyValue("Cid", ref _Cid, value);
            }
        }
        private string _Nick;
        [Size(SizeAttribute.Unlimited)]
        public string Nick
        {
            get
            {
                return _Nick;
            }
            set
            {
                SetPropertyValue("Nick", ref _Nick, value);
            }
        }
        private string _Title;
        [Size(SizeAttribute.Unlimited)]
        public string Title
        {
            get
            {
                return _Title;
            }
            set
            {
                SetPropertyValue("Title", ref _Title, value);
            }
        }
        private string _Desc;
        [Size(SizeAttribute.Unlimited)]
        public string Desc
        {
            get
            {
                return _Desc;
            }
            set
            {
                SetPropertyValue("Desc", ref _Desc, value);
            }
        }
        private string _Bulletin;
        [Size(SizeAttribute.Unlimited)]
        public string Bulletin
        {
            get
            {
                return _Bulletin;
            }
            set
            {
                SetPropertyValue("Bulletin", ref _Bulletin, value);
            }
        }
        private string _PicPath;
        [Size(SizeAttribute.Unlimited)]
        public string PicPath
        {
            get
            {
                return _PicPath;
            }
            set
            {
                SetPropertyValue("PicPath", ref _PicPath, value);
            }
        }
        private DateTime _Created;
        public DateTime Created
        {
            get
            {
                return _Created;
            }
            set
            {
                SetPropertyValue("Created", ref _Created, value);
            }
        }
        private DateTime _Modified;
        public DateTime Modified
        {
            get
            {
                return _Modified;
            }
            set
            {
                SetPropertyValue("Modified", ref _Modified, value);
            }
        }
        private TopShopScore _ShopScore;
        public TopShopScore ShopScore
        {
            get
            {
                return _ShopScore;
            }
            set
            {
                SetPropertyValue("ShopScore", ref _ShopScore, value);
            }
        }
        private long _RemainCount;
        public long RemainCount
        {
            get
            {
                return _RemainCount;
            }
            set
            {
                SetPropertyValue("RemainCount", ref _RemainCount, value);
            }
        }
        private long _AllCount;
        public long AllCount
        {
            get
            {
                return _AllCount;
            }
            set
            {
                SetPropertyValue("AllCount", ref _AllCount, value);
            }
        }
        private long _UsedCount;
        public long UsedCount
        {
            get
            {
                return _UsedCount;
            }
            set
            {
                SetPropertyValue("UsedCount", ref _UsedCount, value);
            }
        }
        //end
    }
}
